home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / Box.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.9 KB  |  62 lines

  1. package javax.swing;
  2.  
  3. import java.awt.AWTError;
  4. import java.awt.Component;
  5. import java.awt.Container;
  6. import java.awt.Dimension;
  7. import java.awt.LayoutManager;
  8. import javax.accessibility.Accessible;
  9. import javax.accessibility.AccessibleContext;
  10.  
  11. public class Box extends Container implements Accessible {
  12.    protected AccessibleContext accessibleContext = null;
  13.  
  14.    public Box(int var1) {
  15.       super.setLayout(new BoxLayout(this, var1));
  16.    }
  17.  
  18.    public static Component createGlue() {
  19.       return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 32767));
  20.    }
  21.  
  22.    public static Box createHorizontalBox() {
  23.       return new Box(0);
  24.    }
  25.  
  26.    public static Component createHorizontalGlue() {
  27.       return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 0));
  28.    }
  29.  
  30.    public static Component createHorizontalStrut(int var0) {
  31.       return new Filler(new Dimension(var0, 0), new Dimension(var0, 0), new Dimension(var0, 32767));
  32.    }
  33.  
  34.    public static Component createRigidArea(Dimension var0) {
  35.       return new Filler(var0, var0, var0);
  36.    }
  37.  
  38.    public static Box createVerticalBox() {
  39.       return new Box(1);
  40.    }
  41.  
  42.    public static Component createVerticalGlue() {
  43.       return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(0, 32767));
  44.    }
  45.  
  46.    public static Component createVerticalStrut(int var0) {
  47.       return new Filler(new Dimension(0, var0), new Dimension(0, var0), new Dimension(32767, var0));
  48.    }
  49.  
  50.    public AccessibleContext getAccessibleContext() {
  51.       if (this.accessibleContext == null) {
  52.          this.accessibleContext = new AccessibleBox(this);
  53.       }
  54.  
  55.       return this.accessibleContext;
  56.    }
  57.  
  58.    public void setLayout(LayoutManager var1) {
  59.       throw new AWTError("Illegal request");
  60.    }
  61. }
  62.